package IC.Parser;

public class LexicalError extends Exception
{
	public LexicalError(String message, int line, String value) 
    {
    	this(String.valueOf(++line) + ": Lexical error: " + message + " '" + value + "'");
    }
	
	public LexicalError(String message, int line) 
    {
    	this(String.valueOf(++line) + ": Lexical error: " + message);
    }
	
	public LexicalError(String message)
	{
		super(message);
	}
}

